<!-- 修改服装信息 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<link
	href="${pageContext.request.contextPath}/css/designer/designer-User.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery-1.9.1.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/enterprise/addClothes.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath }/js/common/cropbox.js"></script>
<title></title>
</head>

<body>
	<c:if test="${msg!=null }">
		<script type="text/javascript">
			alert("${msg}");
		</script>
	</c:if>
	<form action="${pageContext.request.contextPath}/design/addDesign.do"
		method="post" enctype="multipart/form-data" class="addForm">
		<div class="addPhoto" style="height: 108px;">
			<span style="float: left;">服装图：&nbsp;&nbsp;</span>
			<c:if test="${clothing.photo_url1!=null}">
			<div class="image">
				<div class="preview">
					<a class="addHref" href="javascript:;"> 
					<img src="${pageContext.request.contextPath}/${clothing.photo_url1}">
					</a>
				</div>
				<input type="file" class="tohide" style="display: none;" />
			</div>
			</c:if>
			<c:if test="${clothing.photo_url2!=null}">
			<div class="image">
				<div class="preview">
					<a class="addHref" href="javascript:;"> 
					<img src="${pageContext.request.contextPath}/${clothing.photo_url2}">
					</a>
				</div>
				<input type="file" class="tohide" style="display: none;" />
			</div>
			</c:if>
			<c:if test="${clothing.photo_url3!=null}">
			<div class="image">
				<div class="preview">
					<a class="addHref" href="javascript:;"> 
					<img src="${pageContext.request.contextPath}/${clothing.photo_url3}">
					</a>
				</div>
				<input type="file" class="tohide" style="display: none;" />
			</div>
			</c:if>
			<c:if test="${clothing.photo_url4!=null}">
			<div class="image">
				<div class="preview">
					<a class="addHref" href="javascript:;"> 
					<img src="${pageContext.request.contextPath}/${clothing.photo_url4}">
					</a>
				</div>
				<input type="file" class="tohide" style="display: none;" />
			</div>
			</c:if>
			<c:if test="${clothing.photo_url5!=null}">
			<div class="image">
				<div class="preview">
					<a class="addHref" href="javascript:;"> 
					<img src="${pageContext.request.contextPath}/${clothing.photo_url5}">
					</a>
				</div>
				<input type="file" class="tohide" style="display: none;" />
			</div>
			</c:if>
				<div class="image addimage">
					<div class="preview">
						<a class="addHref" href="javascript:;"> 
						<img src="../images/add.jpg">
						</a>
					</div>
					<input type="file" class="tohide" style="display: none;" />
				</div>
			<!--新增专辑弹出框-->
			<div class="hide-body">
				<div class="close-window">
					<!-- 关闭窗口，也就是触发关闭div的事件-->
					<a href="javascript:;" title="关闭" class="close">×</a>
					<h4>上传服装图片</h4>
				</div>
				<!-- 中间主体显示div 可以增加其他的样式-->
				<div class="login-body dform">
					<div class="imgcontainer">
						<div class="imageBox">
							<div class="thumbBox"></div>
							<div class="spinner" style="display: none">Loading...</div>
						</div>
						<div class="cropped"></div>
						<div class="action">
							<input type="button" id="btnCrop" class="Btnsty_peyton"
								value="裁切"> <input type="button" id="btnZoomIn"
								class="Btnsty_peyton" value="+"> <input type="button"
								id="btnZoomOut" class="Btnsty_peyton" value="-">
							<div class="new-contentarea tc">
								<a href="javascript:void(0)" class="upload-img"> <label
									for="upload-file" style="margin-top: 2px;">上传图像</label>
								</a> <input type="file" name="logo_link" id="upload-file" /> <a
									class="closeimgcontainer">确定上传</a>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="body-color"></div>
			<!--新增专辑弹出框结束-->

		</div>
		<div class="addPhoto" style="height: 39px;">
			<span>货号：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
				type="text" class="input" name="no" />
		</div>
		<div class="addPhoto" style="height: 39px;">
			<span>服装名称：</span> <input type="text" class="input" name="name" />
		</div>
		<div class="addPhoto">
			<span>分类：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				id="big_class" style="width: 204px">
				<option value="-1">请选择大类</option>

				<c:forEach items="${big_class}" var="big_class">
					<option value="${big_class.code}">${big_class.name}</option>
				</c:forEach>

			</select> <select id="middle_class" style="width: 204px">
				<option value="-1">请选择中类</option>
			</select> <select name="type_code" id="small_class" style="width: 204px">
				<option value="-1">请选择小类</option>
			</select>
		</div>
		<div class="addPhoto">
			<span>风格：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="style_code">
				<c:forEach items="${style}" var="style">
					<option value="${style.code}">${style.value}</option>
				</c:forEach>
			</select> <span>品牌：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="brand_id">
				<c:forEach items="${pattern}" var="pattern">
					<option value="${pattern.brand_id}">${pattern.value}</option>
				</c:forEach>
			</select>
		</div>
		<div class="addPhoto">
			<span>面料成分：</span> <select name="component_code">
				<c:forEach items="${pattern}" var="pattern">
					<option value="${pattern.component_code}">${pattern.value}</option>
				</c:forEach>
			</select>&nbsp;&nbsp;&nbsp;&nbsp; <span>面料织法：</span> <select name="weave_code">
				<c:forEach items="${pattern}" var="pattern">
					<option value="${pattern.weave_code}">${pattern.value}</option>
				</c:forEach>
			</select>

		</div>
		<div class="addPhoto">
			<span>版型：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="pattern_code" class="pattern_code">
				<c:forEach var="pattern" items="${pattern}">
					<option value="">${pattern.pattern_code}</option>
				</c:forEach>
			</select>&nbsp;&nbsp;&nbsp;&nbsp; <span>年份：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<input type="text" class="input year" name="year" />
		</div>
		<div class="addPhoto" style="height: 38px;">
			<span>色彩：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
				type="text" class="input" name="color" placeholder="如‘蓝色’" />
		</div>

		<div class="addPhoto">
			<span>描述：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<textarea name="description" style="width: 242px; height: 80px;"></textarea>
		</div>
		<div class="addPhoto" style="position: relative; left: 14px;">
			<input type="hidden" name="designer_id" value="${designer_id}">
			<input class="btn btn-info" type="submit" value="提交">
		</div>

	</form>
</body>


</html>
